﻿@{
    ViewBag.Title = "数据恢复";
}
<!DOCTYPE html>
<html>
@Html.Partial("LoadPanelPartial")
<head>
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
    }
    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(

        new StyleSheet { ExtensionType = ExtensionType.ListBox, Theme = DevExpressHelper.Theme }
)
    @Html.DevExpress().GetScripts(
        new Script { ExtensionType = ExtensionType.ListBox }
)
    <script type="text/javascript">
        $(document).ready(function () {
            var hdjsAlert = $("#hdjsAlert").val();
            if (hdjsAlert != "") {
                alert(hdjsAlert);
            }
        });

        function ok() {
            if (upload.GetText() == "") {
                alert("请选择要上传的文件！");
            } else {
                if (confirm("导入时该时间段数据将被删除确定导入数据？")) {
                    lp.Show();
                    form1.submit();
                }
            }
        }

    </script>



</head>
<body>

    @using (Html.BeginForm("GSImportDate", "TaxManager", FormMethod.Post, new { id = "form1" }))
    {
        <br />
        <div class="div">
        <table width="99%" align="center" class="tableForm">
            <tr>
                <th align="right" width="20%">
                    操作说明:</th>
                <td class="tdClass">
                <br />
                    数据恢复一定要是Excel!<br />
                    数据恢复由于数据过大时间比较缓慢，请耐心等待！
                    <br />
                </td>
            </tr>
            <tr>
                <th align="right" width="20%">
                    所属年月:</th>
                <td class="tdClass">
                <table>
                <tr>
                <td>
                @Html.DevExpress().DateEdit(settings => {
              settings.Name = "SSSQBegin";
              settings.Properties.ShowShadow = true;
              settings.Properties.EditFormat = EditFormat.Date;
              settings.Properties.EditFormatString = "yyyy-MM";
              settings.Date = DateTime.Now;
              settings.Properties.UseMaskBehavior = true;
           }).GetHtml()
                </td>
                
                    <td>     -
                </td>
                    <td>
                                    @Html.DevExpress().DateEdit(settings =>
                               {
                                   settings.Name = "SSSQEnd";
                                   settings.Properties.ShowShadow = true;
                                   settings.Properties.EditFormat = EditFormat.Date;
                                   settings.Properties.EditFormatString = "yyyy-MM";
                                   settings.Date = DateTime.Now;
                                   settings.Properties.UseMaskBehavior = true;
                               }).GetHtml()
                </td>
                </tr>
                </table>
               </td>
            </tr>

            <tr>
                <th>
                选择操作:
                </th>
                <td class="tbClass">
                     @Html.DevExpress().UploadControl(
                        settings =>
                        {
                            settings.Name = "upload";
                            settings.BrowseButton.Text = "浏览";
                            settings.Height = System.Web.UI.WebControls.Unit.Percentage(100);
                            settings.ClearFileSelectionImage.ToolTip = "清除选择";
                            settings.ShowProgressPanel = true;
                            settings.ValidationSettings.MaxFileSize = 20971520;
                            settings.ShowUploadButton = false;
                        }).GetHtml()
                </td>
            </tr>
            <tr>
                <th></th>
                <td  class="tbClass">

                @Html.DevExpress().Button(settings =>
           {
               settings.Name = "btnOK";
               settings.Text = "确定导入";
               settings.ControlStyle.CssClass = "button";
               settings.Images.Image.Url = Url.Content("~/Content/ControlImages/ok.png");
               settings.ClientSideEvents.Click = "ok";
           }).GetHtml()
            </td>
            </tr>
            
        </table>
    </div>
         @Html.Hidden("hidMessage", ViewData["message"])
         @Html.Hidden("hidIsClose", ViewData["IsClose"])
         @Html.Hidden("hdjsAlert", (ViewData["jsAlert"]));

    }
    <script>
        lp.Hide();
    </script>

</body>
</html>
